package com.ruoyi.talk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 群组聊天记录对象 talk_group_record_chat
 * 
 * @author HaiWang
 * @date 2023-05-18
 */
public class GroupRecordChat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 群聊天记录id */
    @Excel(name = "群聊天记录id")
    private Long groupChatRecordId;

    /** 群组id */
    @Excel(name = "群组id")
    private Long groupId;

    /** 发送者id */
    @Excel(name = "发送者id")
    private Long senderId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 是否已读(1:已读 0:未读) */
    @Excel(name = "是否已读(1:已读 0:未读)")
    private Long isRead;

    /** 类型 */
    @Excel(name = "类型")
    private Long sendType;

    public void setGroupChatRecordId(Long groupChatRecordId) 
    {
        this.groupChatRecordId = groupChatRecordId;
    }

    public Long getGroupChatRecordId() 
    {
        return groupChatRecordId;
    }
    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    public void setIsRead(Long isRead) 
    {
        this.isRead = isRead;
    }

    public Long getIsRead() 
    {
        return isRead;
    }
    public void setSendType(Long sendType) 
    {
        this.sendType = sendType;
    }

    public Long getSendType() 
    {
        return sendType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("groupChatRecordId", getGroupChatRecordId())
            .append("groupId", getGroupId())
            .append("senderId", getSenderId())
            .append("content", getContent())
            .append("sendTime", getSendTime())
            .append("isRead", getIsRead())
            .append("sendType", getSendType())
            .toString();
    }
}
